Docs
post https://workflow.iugu.com/api/{workspace_id}/{trigger}

Inicia um fluxo de trabalho a partir de uma trigger

Sem ações implementadas definidas

Request

Path variables

workspace_id

Required

Type: string

trigger

Required

Type: string

Body

Content Type: application/json

payload
Object

Ex: {}

Example
1
2
3
4
{
  "payload": {
  }
}

Response

200

Instância processada com sucesso

success
Array of objects

id
String

message
String

Ex: [{"id"=>"c7e8299a-ddd5-4ba0-b788-04a78e7aa122", "message"=>"Instance processed successfully"}]

Example
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "success": [
    {
      "id": "<ID>",
      "message": [
        {
          "id": "c7e8299a-ddd5-4ba0-b788-04a78e7aa122",
          "message": "Instance processed successfully"
        }
      ]
    }
  ]
}

400

Parâmetros ou cabeçalhos obrigatórios estão faltando.

error
String

Ex: The 'event' parameter is required but missing or empty.

Example
1
2
3
{
  "error": "The 'event' parameter is required but missing or empty."
}

401

Não autorizado ou token expirado.

error
String

Ex: Unauthorized. If the issue persists, please contact support with Error ID 1bc0f1c1-65ba-4495-b212-7ebd3b2dbbaa

Example
1
2
3
{
  "error": "Unauthorized. If the issue persists, please contact support with Error ID 1bc0f1c1-65ba-4495-b212-7ebd3b2dbbaa"
}